namespace WanPiJie {
    	using System;
    	
    	
    	/// <summary>
    	/// 表名：ehr_GrowthIndex 主键列：Id
    	/// </summary>
    	[SerializableAttribute()]
    	public partial class _GrowthIndex : MySoft.Data.Entity {
    		
    		protected Int32 _Id;
    		
    		protected Int32 _PeriodStart;
    		
    		protected Int32 _PeriodEnd;
    		
    		protected Double _HeightStart;
    		
    		protected Double _HeightEnd;
    		
    		protected Double _WeighStart;
    		
    		protected Double _WeightEnd;
    		
    		protected Double _HeadSizeStart;
    		
    		protected Double _HeadSizeEnd;
    		
    		protected Double _ChestSizeStart;
    		
    		protected Double _ChestSizeEnd;
    		
    		protected String _Summary;
    		
    		protected String _Description;
    		
    		public Int32 Id {
    			get {
    				return this._Id;
    			}
    			set {
    				this.OnPropertyValueChange(_.Id, _Id, value);
    				this._Id = value;
    			}
    		}
    		
    		public Int32 PeriodStart {
    			get {
    				return this._PeriodStart;
    			}
    			set {
    				this.OnPropertyValueChange(_.PeriodStart, _PeriodStart, value);
    				this._PeriodStart = value;
    			}
    		}
    		
    		public Int32 PeriodEnd {
    			get {
    				return this._PeriodEnd;
    			}
    			set {
    				this.OnPropertyValueChange(_.PeriodEnd, _PeriodEnd, value);
    				this._PeriodEnd = value;
    			}
    		}
    		
    		/// <summary>
    		/// 身高
    		/// </summary>
    		public Double HeightStart {
    			get {
    				return this._HeightStart;
    			}
    			set {
    				this.OnPropertyValueChange(_.HeightStart, _HeightStart, value);
    				this._HeightStart = value;
    			}
    		}
    		
    		public Double HeightEnd {
    			get {
    				return this._HeightEnd;
    			}
    			set {
    				this.OnPropertyValueChange(_.HeightEnd, _HeightEnd, value);
    				this._HeightEnd = value;
    			}
    		}
    		
    		/// <summary>
    		/// 体重
    		/// </summary>
    		public Double WeighStart {
    			get {
    				return this._WeighStart;
    			}
    			set {
    				this.OnPropertyValueChange(_.WeighStart, _WeighStart, value);
    				this._WeighStart = value;
    			}
    		}
    		
    		public Double WeightEnd {
    			get {
    				return this._WeightEnd;
    			}
    			set {
    				this.OnPropertyValueChange(_.WeightEnd, _WeightEnd, value);
    				this._WeightEnd = value;
    			}
    		}
    		
    		/// <summary>
    		/// 头围
    		/// </summary>
    		public Double HeadSizeStart {
    			get {
    				return this._HeadSizeStart;
    			}
    			set {
    				this.OnPropertyValueChange(_.HeadSizeStart, _HeadSizeStart, value);
    				this._HeadSizeStart = value;
    			}
    		}
    		
    		public Double HeadSizeEnd {
    			get {
    				return this._HeadSizeEnd;
    			}
    			set {
    				this.OnPropertyValueChange(_.HeadSizeEnd, _HeadSizeEnd, value);
    				this._HeadSizeEnd = value;
    			}
    		}
    		
    		/// <summary>
    		/// 胸围
    		/// </summary>
    		public Double ChestSizeStart {
    			get {
    				return this._ChestSizeStart;
    			}
    			set {
    				this.OnPropertyValueChange(_.ChestSizeStart, _ChestSizeStart, value);
    				this._ChestSizeStart = value;
    			}
    		}
    		
    		public Double ChestSizeEnd {
    			get {
    				return this._ChestSizeEnd;
    			}
    			set {
    				this.OnPropertyValueChange(_.ChestSizeEnd, _ChestSizeEnd, value);
    				this._ChestSizeEnd = value;
    			}
    		}
    		
    		public String Summary {
    			get {
    				return this._Summary;
    			}
    			set {
    				this.OnPropertyValueChange(_.Summary, _Summary, value);
    				this._Summary = value;
    			}
    		}
    		
    		public String Description {
    			get {
    				return this._Description;
    			}
    			set {
    				this.OnPropertyValueChange(_.Description, _Description, value);
    				this._Description = value;
    			}
    		}
    		
    		/// <summary>
    		/// 获取实体对应的表名
    		/// </summary>
    		protected override MySoft.Data.Table GetTable() {
    			return new MySoft.Data.Table<_GrowthIndex>("ehr_GrowthIndex");
    		}
    		
    		/// <summary>
    		/// 获取实体中的主键列
    		/// </summary>
    		protected override MySoft.Data.Field[] GetPrimaryKeyFields() {
    			return new MySoft.Data.Field[] {
    					_.Id};
    		}
    		
    		/// <summary>
    		/// 获取列信息
    		/// </summary>
    		protected override MySoft.Data.Field[] GetFields() {
    			return new MySoft.Data.Field[] {
    					_.Id,
    					_.PeriodStart,
    					_.PeriodEnd,
    					_.HeightStart,
    					_.HeightEnd,
    					_.WeighStart,
    					_.WeightEnd,
    					_.HeadSizeStart,
    					_.HeadSizeEnd,
    					_.ChestSizeStart,
    					_.ChestSizeEnd,
    					_.Summary,
    					_.Description};
    		}
    		
    		/// <summary>
    		/// 获取列数据
    		/// </summary>
    		protected override object[] GetValues() {
    			return new object[] {
    					this._Id,
    					this._PeriodStart,
    					this._PeriodEnd,
    					this._HeightStart,
    					this._HeightEnd,
    					this._WeighStart,
    					this._WeightEnd,
    					this._HeadSizeStart,
    					this._HeadSizeEnd,
    					this._ChestSizeStart,
    					this._ChestSizeEnd,
    					this._Summary,
    					this._Description};
    		}
    		
    		/// <summary>
    		/// 给当前实体赋值
    		/// </summary>
    		protected override void SetValues(MySoft.Data.IRowReader reader) {
    			if ((false == reader.IsDBNull(_.Id))) {
    				this._Id = reader.GetInt32(_.Id);
    			}
    			if ((false == reader.IsDBNull(_.PeriodStart))) {
    				this._PeriodStart = reader.GetInt32(_.PeriodStart);
    			}
    			if ((false == reader.IsDBNull(_.PeriodEnd))) {
    				this._PeriodEnd = reader.GetInt32(_.PeriodEnd);
    			}
    			if ((false == reader.IsDBNull(_.HeightStart))) {
    				this._HeightStart = reader.GetDouble(_.HeightStart);
    			}
    			if ((false == reader.IsDBNull(_.HeightEnd))) {
    				this._HeightEnd = reader.GetDouble(_.HeightEnd);
    			}
    			if ((false == reader.IsDBNull(_.WeighStart))) {
    				this._WeighStart = reader.GetDouble(_.WeighStart);
    			}
    			if ((false == reader.IsDBNull(_.WeightEnd))) {
    				this._WeightEnd = reader.GetDouble(_.WeightEnd);
    			}
    			if ((false == reader.IsDBNull(_.HeadSizeStart))) {
    				this._HeadSizeStart = reader.GetDouble(_.HeadSizeStart);
    			}
    			if ((false == reader.IsDBNull(_.HeadSizeEnd))) {
    				this._HeadSizeEnd = reader.GetDouble(_.HeadSizeEnd);
    			}
    			if ((false == reader.IsDBNull(_.ChestSizeStart))) {
    				this._ChestSizeStart = reader.GetDouble(_.ChestSizeStart);
    			}
    			if ((false == reader.IsDBNull(_.ChestSizeEnd))) {
    				this._ChestSizeEnd = reader.GetDouble(_.ChestSizeEnd);
    			}
    			if ((false == reader.IsDBNull(_.Summary))) {
    				this._Summary = reader.GetString(_.Summary);
    			}
    			if ((false == reader.IsDBNull(_.Description))) {
    				this._Description = reader.GetString(_.Description);
    			}
    		}
    		
    		public override int GetHashCode() {
    			return base.GetHashCode();
    		}
    		
    		public override bool Equals(object obj) {
    			if ((obj == null)) {
    				return false;
    			}
    			if ((false == typeof(_GrowthIndex).IsAssignableFrom(obj.GetType()))) {
    				return false;
    			}
    			if ((((object)(this)) == ((object)(obj)))) {
    				return true;
    			}
    			return false;
    		}
    		
    		public class _ {
    			
    			/// <summary>
    			/// 表示选择所有列，与*等同
    			/// </summary>
    			public static MySoft.Data.AllField All = new MySoft.Data.AllField<_GrowthIndex>();
    			
    			/// <summary>
    			/// 字段名：Id - 数据类型：Int32
    			/// </summary>
    			public static MySoft.Data.Field Id = new MySoft.Data.Field<_GrowthIndex>("Id");
    			
    			/// <summary>
    			/// 字段名：PeriodStart - 数据类型：Int32
    			/// </summary>
    			public static MySoft.Data.Field PeriodStart = new MySoft.Data.Field<_GrowthIndex>("PeriodStart");
    			
    			/// <summary>
    			/// 字段名：PeriodEnd - 数据类型：Int32
    			/// </summary>
    			public static MySoft.Data.Field PeriodEnd = new MySoft.Data.Field<_GrowthIndex>("PeriodEnd");
    			
    			/// <summary>
    			/// 身高 - 字段名：HeightStart - 数据类型：Double
    			/// </summary>
    			public static MySoft.Data.Field HeightStart = new MySoft.Data.Field<_GrowthIndex>("HeightStart");
    			
    			/// <summary>
    			/// 字段名：HeightEnd - 数据类型：Double
    			/// </summary>
    			public static MySoft.Data.Field HeightEnd = new MySoft.Data.Field<_GrowthIndex>("HeightEnd");
    			
    			/// <summary>
    			/// 体重 - 字段名：WeighStart - 数据类型：Double
    			/// </summary>
    			public static MySoft.Data.Field WeighStart = new MySoft.Data.Field<_GrowthIndex>("WeighStart");
    			
    			/// <summary>
    			/// 字段名：WeightEnd - 数据类型：Double
    			/// </summary>
    			public static MySoft.Data.Field WeightEnd = new MySoft.Data.Field<_GrowthIndex>("WeightEnd");
    			
    			/// <summary>
    			/// 头围 - 字段名：HeadSizeStart - 数据类型：Double
    			/// </summary>
    			public static MySoft.Data.Field HeadSizeStart = new MySoft.Data.Field<_GrowthIndex>("HeadSizeStart");
    			
    			/// <summary>
    			/// 字段名：HeadSizeEnd - 数据类型：Double
    			/// </summary>
    			public static MySoft.Data.Field HeadSizeEnd = new MySoft.Data.Field<_GrowthIndex>("HeadSizeEnd");
    			
    			/// <summary>
    			/// 胸围 - 字段名：ChestSizeStart - 数据类型：Double
    			/// </summary>
    			public static MySoft.Data.Field ChestSizeStart = new MySoft.Data.Field<_GrowthIndex>("ChestSizeStart");
    			
    			/// <summary>
    			/// 字段名：ChestSizeEnd - 数据类型：Double
    			/// </summary>
    			public static MySoft.Data.Field ChestSizeEnd = new MySoft.Data.Field<_GrowthIndex>("ChestSizeEnd");
    			
    			/// <summary>
    			/// 字段名：Summary - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field Summary = new MySoft.Data.Field<_GrowthIndex>("Summary");
    			
    			/// <summary>
    			/// 字段名：Description - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field Description = new MySoft.Data.Field<_GrowthIndex>("Description");
    		}
    	}
    }
